home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18279 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.nkn.net!news
  2. From: kidzi@dfw.nkn.edu (Kevin Idzi)
  3. Newsgroups: comp.lang.c++
  4. Subject: C++ Questions
  5. Date: Fri, 19 Apr 1996 19:46:56 GMT
  6. Organization: National Knowledge Network
  7. Message-ID: <3177ecaa.178966716@news.nkn.net>
  8. NNTP-Posting-Host: port9.nkn.edu
  9. X-Newsreader: Forte Agent .99d/32.168
  10.  
  11. I have a question on C++. which I am currently learning. I am
  12. attempting to convert some of my old Pascal Code for a game i made,
  13. Duckhunt, yet I cannot find out how to convert 2 different types of
  14. things.  First of all, this should be easy, yet it slips me... How do
  15. you include an .OBJ file within the code of the program?  I have a
  16. binary file i used binobj to convert, and i need it within my program
  17. for the graphic routines to run properly.  
  18.  
  19. Secondly.. once i have that object in, using pascal, i was able to use
  20. the command:
  21. move(mem[seg(screens1):0],mem[$b800:0],4000);
  22.  
  23. Now what this does, is using the obj that was linked using {$L <.obj
  24. file} within TPascal, it would find the memory segment, and copy it,
  25. or move it to the screen in the desired location. I am in major need
  26. of help here:) .. could someone please help me out? Thanks alot if you
  27. can!
  28.